﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PropertyExpression.TypedDataBinding.Web.Example.Example1Form" %>

<%@ Register Assembly="PropertyExpression.TypedDataBinding.Web" Namespace="PropertyExpression.TypedDataBinding.Web.WebControls"
    TagPrefix="tdb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <tdb:Repeater ID="Repeater2" runat="server">
    <FooterTemplate>
    <div/>
    </FooterTemplate>
        <ItemTemplate>
            <div>
                <asp:Label ID="Label1" runat="server" Text="A001" />
                <tdb:TextBox ID="TextBox1" runat="server" Text="<%# aBinder.Data.A001 %>" />
            </div>
            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
            <ul>
                <tdb:Repeater ID="Repeater1" runat="server" OnTypedInit="Repeater1_OnTypedInit">
                <HeaderTemplate>
                        <li>
                            <tdb:Literal ID="Literal1" runat="server" OnTypedInit="Literal3_OnTypedInit" />
                        </li>                
                </HeaderTemplate>
                    <ItemTemplate>
                        <li>
                            <tdb:Literal ID="Literal1" runat="server" OnTypedInit="Literal1_OnTypedInit" />
                        </li>
                        <ul>
                            <tdb:Repeater ID="Repeater1" runat="server" OnTypedInit="Repeater2_OnTypedInit">
                <HeaderTemplate>
                        <li>sdfv
                            <tdb:Literal ID="Literal4" runat="server" OnTypedInit="Literal4_OnTypedInit" />
                        </li>                
                </HeaderTemplate>
                                <ItemTemplate>
                                    <li>
                                        <tdb:Literal ID="Literal2" runat="server" Text="<%# cBinder.Data.Id %>" OnTypedInit="Literal2_OnTypedInit" />
                                        <tdb:TextBox ID="TextBox1" runat="server" Text="<%# cBinder.Data.BId %>" OnTypedInit="TextBox4_OnTypedInit" OnTextChanged="TextBox2_TextChanged"
                                            AutoPostBack="true" />
                                    </li>
                                </ItemTemplate>
                            </tdb:Repeater>
                        </ul>
                    </ItemTemplate>
                </tdb:Repeater>
            </ul>
            <div>
                <tdb:TextBox ID="TextBox2" runat="server" Text="<%# aBinder.Data.A001 %>" />
            </div>
        </ItemTemplate>
    </tdb:Repeater>
    </form>
</body>
</html>
